package com.example.medical.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName loging
 */
@TableName(value ="loging")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Loging implements Serializable {
    /**
     * 日志主键
     */
    @TableId(value = "loging_id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long logingId;

    /**
     * 日志名
     */
    @TableField(value = "loging_name")
    private String logingName;

    /**
     * 事务分类
0：设备出库
1：设备入库
2：设备转科
3：设备报损
4：设备检测
5：设备维修
6：设备采购
     */
    @TableField(value = "loging_affairs_category")
    private Integer logingAffairsCategory;

    /**
     * 事务结果：
0：已完成
1：已拒绝
     */
    @TableField(value = "loging_type")
    private Integer logingType;

    /**
     * 职工/事务发起者
     */
    @TableField(value = "loging_user_nick_start")
    private String logingUserNickStart;

    /**
     * 管理员
     */
    @TableField(value = "loging_admin_nick")
    private String logingAdminNick;

    /**
     * 领导
     */
    @TableField(value = "loging_leadership_nick")
    private String logingLeadershipNick;

    /**
     * 职工/事务结束者
     */
    @TableField(value = "loging_user_nick_end")
    private String logingUserNickEnd;

    /**
     * 发起者id
     */
    @TableField(value = "loging_user_id_start")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long logingUserIdStart;

    /**
     * 结束者id
     */
    @TableField(value = "loging_user_id_end")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long logingUserIdEnd;

    /**
     * 管理员id
     */
    @TableField(value = "loging_admin_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long logingAdminId;

    /**
     * 领导id
     */
    @TableField(value = "loging_leadership_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long logingLeadershipId;

    /**
     * 事务id
     */
    @TableField(value = "loging_affairs_id")
    private Integer logingAffairsId;

    /**
     * 拒绝理由
     */
    @TableField(value = "loging_memo")
    private String logingMemo;

    /**
     * 添加事件
     */
    @TableField(value = "save_time")
    private String saveTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}